package com.jnzc.ocr.serv.shop.api.impl;

import com.jnzc.ocr.common.bean.PageResult;
import com.jnzc.ocr.serv.shop.api.ShopRefundSaleApi;
import com.jnzc.ocr.serv.shop.entity.ShopRefund;
import com.jnzc.ocr.serv.shop.entity.ShopRefundSale;
import com.jnzc.ocr.serv.shop.filter.ShopRefundFilter;
import com.jnzc.ocr.serv.shop.filter.ShopRefundSaleFilter;
import com.jnzc.ocr.serv.shop.service.ShopRefundSaleService;
import com.jnzc.ocr.serv.shop.vo.ShopRefundSaleCreateVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangcm
 * @version 1.0, 2017-11-26
 */
@RestController
public class ShopRefundSaleApiImpl implements ShopRefundSaleApi {

    @Autowired
    private ShopRefundSaleService shopRefundSaleService;

    @Override
    public PageResult<ShopRefundSale> search(ShopRefundSaleFilter filter, Integer pageNo, Integer pageSize) {
        return shopRefundSaleService.search(filter, pageNo, pageSize);
    }

    @Override
    public void create(@RequestBody ShopRefundSaleCreateVo createVo, Long shopId) {
        shopRefundSaleService.create(createVo, shopId);
    }
}
